import httpRequest from '../../utils/request'
import modules from '../modules'
const defaultRoute = 'Crew_TeamBill'
const controllerName = 'TeamBill'

export interface TeamBillParam {
  TeamName: string | null
  PageIndex: number
  PageSize: number
  totalCount: number
 
}


// 获取班组设置列表
export function ApiGetCrew_TeamBillPageListAsync(param: TeamBillParam) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Get${defaultRoute}PageList`,
    method: "Post",
    data: param,
  });
}

// 获取班组设置明细列表
export function ApiGetCrew_TeamBillDetialPageListAsync(param: TeamBillParam) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Get${defaultRoute}DetialPageList`,
    method: "Post",
    data: param,
  });
}

// 批量删除班组设置
export function ApiDeletionCrew_TeamBillAsync(param: string[]) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Deletion${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 添加班组设置
export function ApiCreateCrew_TeamBillAsync(param: object) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Create${defaultRoute}`,
    method: "Post",
    data: param,
  });
}


// 更新班组设置
export function ApiUpdateCrew_TeamBillAsync(param: object) {
  return httpRequest({
    url: `${modules.crewModuleUrl}/${controllerName}/Update${defaultRoute}`,
    method: "Post",
    data: param,
  });
}